<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>kisebo: Código-Fonte de F:/Projetos/Rodrigo/kisebo/src/kisebo/Usuario.cpp</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.7.1 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li><a href="dirs.html"><span>Diretórios</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e5fb231306b426dbf7288f735af63cb9.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_8c0497d54df0514193af848d7b3013ef.html">kisebo</a>
  </div>
</div>
<div class="contents">
<h1>Usuario.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include "Usuario.h"</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00003"></a>00003 
<a name="l00004"></a><a class="code" href="class_usuario.html#a85a5371a098dfba5449140d9b8a472f">00004</a> <a class="code" href="class_usuario.html#a85a5371a098dfba5449140d9b8a472f" title="Cria uma instancia padrão Esse método cria uma instancia do Usuario,   lembrando...">Usuario::Usuario</a>()
<a name="l00005"></a>00005 {
<a name="l00006"></a>00006         this-&gt;<span class="keywordtype">id</span> = -1;
<a name="l00007"></a>00007 }
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="class_usuario.html#dde50b34218233e500fdeeb2b403f0b9">00009</a> <a class="code" href="class_usuario.html#a85a5371a098dfba5449140d9b8a472f" title="Cria uma instancia padrão Esse método cria uma instancia do Usuario,   lembrando...">Usuario::Usuario</a>(<span class="keyword">const</span> <a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a> &amp;_copia){
<a name="l00010"></a>00010 
<a name="l00011"></a>00011         this-&gt;<span class="keywordtype">id</span> = _copia.<a class="code" href="class_usuario.html#e04418b8ae8f0185402e8bbb555b2993">id</a>;
<a name="l00012"></a>00012         this-&gt;<a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a> = _copia.<a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a>;
<a name="l00013"></a>00013         this-&gt;<a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a> = _copia.<a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a>;
<a name="l00014"></a>00014         this-&gt;<a class="code" href="class_usuario.html#99d6b6876b9118121cb9171dde26cc44">senha</a> = _copia.<a class="code" href="class_usuario.html#99d6b6876b9118121cb9171dde26cc44">senha</a>;
<a name="l00015"></a>00015         this-&gt;<a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a> = _copia.<a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a>;
<a name="l00016"></a>00016         this-&gt;<a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">cep</a> = _copia.<a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">cep</a>;
<a name="l00017"></a>00017         this-&gt;<a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">endereco</a> = _copia.<a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">endereco</a>;
<a name="l00018"></a>00018         this-&gt;<a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">complemento</a> = _copia.<a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">complemento</a>;
<a name="l00019"></a>00019         this-&gt;<a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">telefone</a> = _copia.<a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">telefone</a>;
<a name="l00020"></a>00020         this-&gt;<a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">livrosDeInteresse</a> = _copia.<a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">livrosDeInteresse</a>;
<a name="l00021"></a>00021         this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a> = _copia.<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>;
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 }
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="class_usuario.html#b4096b0b8300ecb47b10c555fb09c997">00025</a> <a class="code" href="class_usuario.html#b4096b0b8300ecb47b10c555fb09c997" title="Destrutor da entidade Utilizado para liberar espaço na mémoria, eliminando a instancia...">Usuario::~Usuario</a>()
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 }
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="class_usuario.html#57d372143c6b2693b6bfd26bb57953ab">00030</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#57d372143c6b2693b6bfd26bb57953ab" title="Inserir um interesse na lista de interesses.">Usuario::AdicionaInteresse</a>(<a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> _iteresse)
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 
<a name="l00033"></a>00033         <span class="keywordflow">if</span>(<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.size() == 0) {
<a name="l00034"></a>00034 
<a name="l00035"></a>00035                 this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.push_back(_iteresse);
<a name="l00036"></a>00036 
<a name="l00037"></a>00037         }<span class="keywordflow">else</span>{
<a name="l00038"></a>00038 
<a name="l00039"></a>00039                 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0; i&lt; (int)<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.size(); i++){
<a name="l00040"></a>00040                         <span class="keywordflow">if</span>(this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>[i] != _iteresse){
<a name="l00041"></a>00041                                 this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.push_back(_iteresse);
<a name="l00042"></a>00042                         }
<a name="l00043"></a>00043                 }
<a name="l00044"></a>00044 
<a name="l00045"></a>00045         }
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 }
<a name="l00048"></a>00048 
<a name="l00049"></a><a class="code" href="class_usuario.html#c1f167bcd261160bf0bb4f052faaad2c">00049</a> <a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> <a class="code" href="class_usuario.html#c1f167bcd261160bf0bb4f052faaad2c" title="Um interesse selecionado na lista de interesses.">Usuario::GetInteresse</a>(<span class="keywordtype">int</span> _posicao)
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051         <a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> interesse;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="keywordflow">if</span>(_posicao &lt; (<span class="keywordtype">int</span>)this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.size()){
<a name="l00054"></a>00054                 interesse = this-&gt;<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>[_posicao];
<a name="l00055"></a>00055         }
<a name="l00056"></a>00056 
<a name="l00057"></a>00057         <span class="keywordflow">return</span> interesse;
<a name="l00058"></a>00058 }
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="class_usuario.html#e32eb2ed09b13f494418045a7840c67c">00060</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#e32eb2ed09b13f494418045a7840c67c" title="Inserir um livro na lista de livros.">Usuario::AdicionaLivroDeInteresse</a>(<a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> _livro)
<a name="l00061"></a>00061 {
<a name="l00062"></a>00062 
<a name="l00063"></a>00063         this-&gt;<a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">livrosDeInteresse</a>.push_back(_livro);
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 }
<a name="l00066"></a>00066 
<a name="l00067"></a><a class="code" href="class_usuario.html#454d6df55edcb9ae7a563e78ec4eba53">00067</a> <a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> <a class="code" href="class_usuario.html#454d6df55edcb9ae7a563e78ec4eba53" title="Retorna um liro da lista de livros do usuário.">Usuario::GetLivroDeInteresse</a>(<span class="keywordtype">int</span> _posicao)
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069         <a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> livro;
<a name="l00070"></a>00070 
<a name="l00071"></a>00071         livro = this-&gt;<a class="code" href="class_usuario.html#ef49055c540e8ebb89247c61fac09b69">livrosDeInteresse</a>[_posicao];
<a name="l00072"></a>00072 
<a name="l00073"></a>00073         <span class="keywordflow">return</span> livro;
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="class_usuario.html#3f29b42b1de7a74fced64f226defa786">00076</a> <span class="keywordtype">long</span> <a class="code" href="class_usuario.html#3f29b42b1de7a74fced64f226defa786" title="Retorna o código de identificação do usuário.">Usuario::GetID</a>() { <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#e04418b8ae8f0185402e8bbb555b2993">id</a>; }
<a name="l00077"></a><a class="code" href="class_usuario.html#34a9054883669d33e81a559273da385b">00077</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#34a9054883669d33e81a559273da385b" title="Inserir o código de identificação.">Usuario::SetID</a>( <span class="keywordtype">long</span> _id) { this-&gt;<span class="keywordtype">id</span> = _id; }
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="class_usuario.html#54ba052be451a6e689d5fb95291f21fe">00079</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#54ba052be451a6e689d5fb95291f21fe" title="Retorna o login de acesso utilizado pelo usuário.">Usuario::GetLogin</a>() { <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a>; }
<a name="l00080"></a><a class="code" href="class_usuario.html#24bc5c2ba7cd017bfc368e3e5b3aed51">00080</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#24bc5c2ba7cd017bfc368e3e5b3aed51" title="Inserir o login de acesso.">Usuario::SetLogin</a>( <span class="keywordtype">string</span> _login ) { this-&gt;<a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a> = _login; }
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="class_usuario.html#f291d6237b5ac14a55e34761ec11a7d6">00082</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#f291d6237b5ac14a55e34761ec11a7d6" title="Inserir a senha do usuário.">Usuario::SetSenha</a>( <span class="keywordtype">string</span> _senha ) { this-&gt;<a class="code" href="class_usuario.html#99d6b6876b9118121cb9171dde26cc44">senha</a> = _senha; }
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="class_usuario.html#8daed537e5d9e650e8895a2f038101d6">00084</a> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">Usuario::ENUM_TIPO</a> <a class="code" href="class_usuario.html#8daed537e5d9e650e8895a2f038101d6" title="Retorna o tipo de usuário.">Usuario::GetTipoUsuario</a>() { <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a>; }
<a name="l00085"></a><a class="code" href="class_usuario.html#c4de8f4a0eaa9764f348c934f2caaaba">00085</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#c4de8f4a0eaa9764f348c934f2caaaba" title="Inserir o tipo do usuário.">Usuario::SetTipoUsuario</a>(<a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">ENUM_TIPO</a> _tipoUsuario) { this-&gt;<a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a> = _tipoUsuario; }
<a name="l00086"></a>00086 
<a name="l00087"></a><a class="code" href="class_usuario.html#39534698541ca25dca335aa79ef6e42f">00087</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#39534698541ca25dca335aa79ef6e42f" title="Retorna o nome do usuário.">Usuario::GetNome</a>(){ <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a>; }
<a name="l00088"></a><a class="code" href="class_usuario.html#fc5514d9edf79eed20061c359529dde6">00088</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#fc5514d9edf79eed20061c359529dde6" title="Inserir o nome do usuário.">Usuario::SetNome</a>(<span class="keywordtype">string</span> _nome){ this-&gt;<a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a> = _nome; }
<a name="l00089"></a>00089 
<a name="l00090"></a><a class="code" href="class_usuario.html#7d67fd32a7a127d1eb54e057e82c4daf">00090</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#7d67fd32a7a127d1eb54e057e82c4daf" title="Retorna o cep do endereço.">Usuario::GetCep</a>(){<span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">cep</a>;};
<a name="l00091"></a><a class="code" href="class_usuario.html#ceb231c11da4489a1c4a8c4712001b59">00091</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#ceb231c11da4489a1c4a8c4712001b59" title="Inserir o cep do endereço do usuário.">Usuario::SetCep</a>(<span class="keywordtype">string</span> _cep){this-&gt;<a class="code" href="class_usuario.html#115f25bb713b18c52cea56622d401c8a">cep</a> = _cep;};
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="class_usuario.html#289f13b38910693ee37930f0aa522e09">00093</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#289f13b38910693ee37930f0aa522e09" title="Retorna o endereço do usuario.">Usuario::GetEndereco</a>(){<span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">endereco</a>;};
<a name="l00094"></a><a class="code" href="class_usuario.html#d69f0b234abb79545f31bb2ba8e8f426">00094</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#d69f0b234abb79545f31bb2ba8e8f426" title="Inserir o endereço do usuário.">Usuario::SetEndereco</a>(<span class="keywordtype">string</span> _endereco){this-&gt;<a class="code" href="class_usuario.html#7ba302814ad13cf6109d4ab2acda2ecf">endereco</a> = _endereco;};
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="class_usuario.html#2529bb6d3b05d795782a4d716fb8b99e">00096</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#2529bb6d3b05d795782a4d716fb8b99e" title="Retorna o complemento do endereço do usuário.">Usuario::GetComplemento</a>(){<span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">complemento</a>;};
<a name="l00097"></a><a class="code" href="class_usuario.html#71405e54fcc05a21a38d84e5ab0d4b8b">00097</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#71405e54fcc05a21a38d84e5ab0d4b8b" title="Inserir o complemento do endereço do usuário.">Usuario::SetComplemento</a>(<span class="keywordtype">string</span> _complemento){this-&gt;<a class="code" href="class_usuario.html#d1fb9c597504e64d0d65fa08e6baf3ab">complemento</a> = _complemento;};
<a name="l00098"></a>00098 
<a name="l00099"></a><a class="code" href="class_usuario.html#56ade81a28bb19ac817a2811c9c2f075">00099</a> <span class="keywordtype">string</span> <a class="code" href="class_usuario.html#56ade81a28bb19ac817a2811c9c2f075" title="Retorna o telefone do usuário.">Usuario::GetTelefone</a>(){<span class="keywordflow">return</span> this-&gt;<a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">telefone</a>;};
<a name="l00100"></a><a class="code" href="class_usuario.html#847d76c46539e644944a2e052aa9fac6">00100</a> <span class="keywordtype">void</span> <a class="code" href="class_usuario.html#847d76c46539e644944a2e052aa9fac6" title="Inserir o telefone do usuário.">Usuario::SetTelefone</a>(<span class="keywordtype">string</span> _telefone){this-&gt;<a class="code" href="class_usuario.html#14a1a592c5d7f9fdeb4bd2e6cd81e37b">telefone</a> = _telefone;};
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="class_usuario.html#f5ac64d2c78a20ba593f38d7e5e631b8">00102</a> ostream&amp; operator &lt;&lt;(ostream &amp;out, <span class="keyword">const</span> <a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a> &amp;_usuario){
<a name="l00103"></a>00103 
<a name="l00104"></a>00104         <a class="code" href="class_usuario.html" title="Classe para controle de usuario. A classe Usuario é um detalhamento das pessoas...">Usuario</a> usuario(_usuario);
<a name="l00105"></a>00105 
<a name="l00106"></a>00106         out &lt;&lt; <span class="stringliteral">"ID: "</span> &lt;&lt; usuario.<a class="code" href="class_usuario.html#e04418b8ae8f0185402e8bbb555b2993">id</a> &lt;&lt; endl;
<a name="l00107"></a>00107         out &lt;&lt; <span class="stringliteral">"Login: "</span> &lt;&lt; usuario.<a class="code" href="class_usuario.html#822d91d77f33cbde8fa864b610ca2208">login</a> &lt;&lt; endl;
<a name="l00108"></a>00108         out &lt;&lt; <span class="stringliteral">"Perfil: "</span> &lt;&lt; usuario.<a class="code" href="class_usuario.html#d95dd727e10bde4e0066d79caace01a7">tipoUsuario</a> &lt;&lt; endl;
<a name="l00109"></a>00109         out &lt;&lt; <span class="stringliteral">"Nome: "</span> &lt;&lt; usuario.<a class="code" href="class_usuario.html#655a3a99ebc056372a1653e9203b2b50">nome</a> &lt;&lt; endl &lt;&lt; endl;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111         out &lt;&lt; <span class="stringliteral">"Lista dos interesses: "</span> &lt;&lt; endl &lt;&lt; endl;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113         <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0; i &lt; (int)usuario.<a class="code" href="class_usuario.html#073b1e297defaf3fb3f70898d00df2e0">interesses</a>.size();i++){
<a name="l00114"></a>00114                 <a class="code" href="class_interesse.html" title="Classe para controle dos Interesses.   Utilizar uma pesquisa por interesse, dessa...">Interesse</a> interesse = usuario.<a class="code" href="class_usuario.html#c1f167bcd261160bf0bb4f052faaad2c" title="Um interesse selecionado na lista de interesses.">GetInteresse</a>(i);
<a name="l00115"></a>00115                 out &lt;&lt; interesse;
<a name="l00116"></a>00116         }
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         <span class="keywordflow">return</span> out;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 }
<a name="l00121"></a>00121 
<a name="l00122"></a><a class="code" href="class_usuario.html#f5a195f7990b40c15ee8e16050b16a2a">00122</a> ostream&amp; operator &lt;&lt;(ostream &amp;out, <span class="keyword">const</span> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608b" title="Enumerator com o tipo do usuário logado. Enumerator para controlar o tipo do usuário...">Usuario::ENUM_TIPO</a> &amp;_tipo){
<a name="l00123"></a>00123 
<a name="l00124"></a>00124         <span class="keywordflow">switch</span> (_tipo){
<a name="l00125"></a>00125                 <span class="keywordflow">case</span> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bd94b28c683eeb32f97bf2f7c1b3b91df">Usuario::CLIENTE</a>: out &lt;&lt; <span class="stringliteral">"Cliente"</span>; <span class="keywordflow">break</span>;
<a name="l00126"></a>00126                 <span class="keywordflow">case</span> <a class="code" href="class_usuario.html#b4f1edcf89cdecca6f55a1367f18608bb3bdd01ded265ca12f50ba8570ba4610">Usuario::FUNCIONARIO</a>: out &lt;&lt; <span class="stringliteral">"Funcionario"</span>; <span class="keywordflow">break</span>;
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128 
<a name="l00129"></a>00129         <span class="keywordflow">return</span> out;
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 }
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Dec 3 04:35:41 2008 para kisebo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
